package 笔试.A百度;

import java.util.LinkedList;
import java.util.Scanner;

public class first {
    public static void main(String arg[]){//main--来自高金磊
         Scanner scanner=new Scanner(System.in);
         int M=scanner.nextInt();
         int K=scanner.nextInt();
        LinkedList<Integer> data=new LinkedList<>();
        int size=0;
        for (int i=K; i>0; i--) {
            int middle=i*M;
            while (middle%10==0)
                middle/=10;
            int re=0;
            while (middle!=0){

            }

        }

    }
}
